package wh.GameObjectFactory;

import wh.FishingPhilosopher.R;
import wh.FishingPhilosopher.Components.ComponentList;
import wh.FishingPhilosopher.Components.TimeCounterAutoRemovedComponent;
import wh.FishingPhilosopher.GameParams.GameParams;
import wh.GameObject.FishingPhilosopherGameObject;
import android.content.Context;

public class NetFactory {
	public static FishingPhilosopherGameObject createNet(Context context, FishingPhilosopherGameObject bullet) {
		ComponentList componentListOfNet=new ComponentList();
		componentListOfNet.autoRemovedComponent=new TimeCounterAutoRemovedComponent(GameParams.MAX_NET_SHOWING_TIME);
		
		FishingPhilosopherGameObject net=new FishingPhilosopherGameObject(context, 
				bullet.getCenterPosition(), 
				R.drawable.net, 
				0, 
				true, 
				GameParams.NET_WIDTH+bullet.getType()*10, 
				GameParams.NET_HEIGHT+bullet.getType()*10);
		
		net.setComponentList(componentListOfNet);	
		net.setComponentList(componentListOfNet);
		
		
		return net;
	} 
}
